package Entity;

import java.io.Serializable;
import java.util.ArrayList;

/** this class Create new Instance of customer*/
public class Customer implements Serializable{

	private static final long serialVersionUID = 42L;
	
	/**attributes for customer*/
	private String CustomerID;
	private String City;
	private int Age;
	private int PurchaseCounter;
	private String firstName;
	private String lastName;
	private int Priority;
	private String PhoneNumber;
	public ArrayList<Customer> customersList;
	
	/**Full constructor with all attributes*/
	public Customer(String firstName, String lastName,  int Age, String City, String CustomerID,String PhoneNumber)
	{
		setCfirstName(firstName);
		setClastName(lastName);
		setAge(Age);
		setCity(City);
		setCustomerID(CustomerID);
		setPhoneNumber(PhoneNumber);	
		setPurchaseCounter();
		setPriority();
		customersList = new ArrayList<Customer>();
	}

	/**default constructor*/
	public Customer() 
	{
		
	}

	/**get functions*/
	public String getCustomerID()
	{
		return this.CustomerID;
	}
	
	public int getPurchaseCounter()
	{
		return this.PurchaseCounter;
	}
	
	public int getAge()
	{
		return this.Age;
	}
	
	public String getFirstName()
	{
		return this.firstName;
	}
	
	public String getLastName()
	{
		return this.lastName;
	}

	public String getCity()
	{
		return this.City;
	}
	
	public int getPriority()
	{
		return this.Priority;
	}

	public String getPhoneNumber()
	{
		return this.PhoneNumber;
	}

	/**set functions*/
	public void setPriority()
	{
		this.Priority=0;
	}
	
	public void setCustomerID(String CustomerID)
	{
		this.CustomerID=CustomerID;
	}
	
	public void setCfirstName( String firstName)
	{
		this.firstName=firstName;
	}
	
	public void setClastName( String lastName)
	{
		this.lastName=lastName;
	}
	
	public void setPurchaseCounter( )
	{
		this.PurchaseCounter=0;
	}
	
	public void setCity( String City)
	{
		this.City=City;
	}
	
	public void setAge( int Age)
	{
		this.Age=Age;
	}
	
	public void setPhoneNumber( String PhoneNumber)
	{
		this.PhoneNumber=PhoneNumber;
	} 
	
}
